/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package slisfx.devices;

/**
 *
 * @author Rebecca
 */
public class Device {
    
    private String deviceName;
    private String deviceDescription;
    private boolean status;
    
    public Device(String dName, String dDescr){
        deviceName = dName;
        deviceDescription = dDescr;
    }
    
    public String getDeviceName(){
        return deviceName;
    }
    
    public String getDeviceDescription(){
        return deviceDescription;
    }
    
    public boolean getDeviceStatus(){
        return status;
    }
    
    public void setDeviceName(String d){
        deviceName = d;
    }
    
    public void setDeviceDescription(String d){
        deviceDescription = d;
    }
    
    public void setDeviceStatus(boolean s){
        status = s;
    }

    public String toXML(){	
    String xmlString = new String();
    return "\t<DEVICE>\n<DeviceName>"+ this.deviceName +
            "</DeviceName>\n <DeviceDesc>" + deviceDescription + 
            "</DeviceDesc>\n</DEVICE>\n"; 	
    }
    
}
